
using System;
using System.Runtime.InteropServices;

namespace Bioscrypt
{
    [StructLayout(LayoutKind.Sequential)]
    public struct BII_WIEGAND_FORMAT
    {
        public int TotalLength;
        public int BitFormat;
        public int IdStartBit;
        public int IdLength;
        public int SiteStartBit;
        public int SiteLength;
        public int ParityType;
        [MarshalAs(UnmanagedType.U4)]
        public int ParityFlags;
        public int EvenParityBit;
        public int OddParityBitTwo;
        public int EvenParityBitTwo;
        public int OddParityBit;
        [MarshalAs(UnmanagedType.U4)]
        public int DefOutPulseWidth;
        [MarshalAs(UnmanagedType.U4)]
        public int DefOutPulseInterval;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
        public int Reserved;
    }
}
